package com.jian.mall.ware.dao;

import com.jian.mall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jian.mall.ware.vo.StockVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品库存
 * 
 * @author tainanle
 * @email 12345678@gmail.com
 * @date 2022-08-11 09:55:30
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void addStock(@Param("skuId") Long skuId,@Param("wareId") Long wareId,@Param("skuNum") Integer skuNum);

    List<StockVo> stockBySkuIds(@Param("skuIds") List<Long> skuIds);
}
